/**
 * 
 */
package com.conn.service.socket.req;

import com.conn.service.socket.req.zjh.ActionRequest;
import com.conn.service.socket.req.zjh.DeskRequest;
import com.conn.service.test.EnterRequest;
import com.macken.zjh.constant.CMD;

/**
 * @author lushouzhi
 * 
 */
public class RequestFactory {

	public static ClientRequest create(short type) {
		ClientRequest request = null;
		switch (type) {
		case 12345:
			request = new TestRequest(type);
			break;
		case 1:
			request = new EnterRequest(type);
			break;
		case CMD.REQ_DESK:
			request = new DeskRequest(type);
			break;
		case CMD.REQ_ACTION:
			request = new ActionRequest(type);
			break;
		default:
			break;
		}
		return request;
	}
}
